﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DreamBox.Admin.User
{
    public partial class CompetenceList : BLL.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DAL.Admin.GetCompetence com = new DAL.Admin.GetCompetence();
                RepeaterList.DataSource = com.GetList();
                RepeaterList.DataBind();
            }
        }

        protected void LinkBtnDelete_Click(object sender, EventArgs e)
        {
            LinkButton linkBtn = sender as LinkButton;
            DAL.Admin.Competence com = new DAL.Admin.Competence();
            if (com.Delete(int.Parse(linkBtn.ToolTip)))
            {
                BLL.Admin.Tips.DetailedTips(this, "删除成功", "/User/CompetenceList.aspx", "1");
            }
        }
    }


}